//设置登录拦截
function isLoginMid(req, res, next) {
    if (req.session.user == undefined) {
        res.redirect('/login/d')
    } else {
        next();
    }
};
module.exports = isLoginMid;